<?php $this->load->view('common/head');?>
<body class="no-skin">
<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>
			
						<div class="row">
							<div class="col-xs-12">
								<form accept-charset="UTF-8" id="new_add" action="<?php echo site_url(X_URL.'settings/settings');?>" class="form-horizontal" role="form" method="post" novalidate="novalidate">
								<?php echo csrf_hidden();?>

                                    <?php if(isset($vars) && !empty($vars)) { ?>
                                        <?php foreach ($vars as $key => $val) { ?>
                                        <div class="space-4"></div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label no-padding-right" for="site_name"> <?php echo $val['name']; ?> </label>
                                            <?php if($val['type'] == 1){ ?>
                                            <div class="col-sm-9">
                                                <input type="text" id="<?php echo $val['k']; ?>" name="<?php echo $val['k']; ?>" placeholder="<?php echo $val['name']; ?>" class="col-xs-10 col-sm-5" value="<?php echo $val['v']; ?>">
                                                <span class="help-block col-sm-reset inline col-xs-12 col-sm-7 hidden-480"><?php echo $val['name']; ?></span>
                                            </div>
                                                <?php }else{ ?>
                                            <div class="col-sm-9">
                                                <textarea name="<?php echo $val['k']; ?>" id="<?php echo $val['k']; ?>" placeholder="<?php echo $val['name']; ?>" class="col-xs-10 col-sm-5" rows="5"><?php echo $val['v']; ?></textarea>
                                            </div>
                                            <?php }?>
                                        </div>
                                        <?php }?>
                                    <?php }?>
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="submit">
												<i class="ace-icon fa fa-check bigger-110"></i>
												确认更新
											</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div><!-- /.main-content -->

			<?php $this->load->view('common/footer');?>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		<?php $this->load->view('common/footerjs');?>
		<!-- inline scripts related to this page -->
		</body>
		</html>